# A Game of Guessing Number
import random
secNum = random.randint(1, 20)
print('I\'m thinking of a number between 1-20. ')

# Ask the player to guess at most 6 times
for guessTaken in range (1, 7):
    print('Take a Guess')
    guess = int(input())

    if guess > secNum:
        print('Too High')
    elif guess < secNum:
        print('Too Low')
    else:
        break

if guess == secNum:
    print('Good Job. Guessed my number in ' + str(guessTaken))
else:
    print('Nope. The right answer is: ' + str(secNum))
